package com.tcwong.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;

/**
 * Description
 *
 * @author tcwong
 * @date 2022/1/15
 * Since 1.8
 */
public class MapperProxy implements InvocationHandler {



    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        List<Object> objects = Arrays.asList(args);
        objects.add("proxy");
        return objects;
    }

    @Override
    public String toString() {
        return "proxyMapper";
    }
}
